home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / demo Source ƒ / demoShell.r < prev    next >
Encoding:
Text File  |  1995-10-27  |  5.9 KB  |  229 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File        : demoShell.r
  3. //    Date        : August 24, 1994
  4. //    Author        : Jim Stout
  5. //    Purpose        : resource descriptions for demoShell.c
  6. //
  7. // -----------------------------------------------------------------------------
  8. #define SystemSevenOrLater 1
  9.  
  10. #include <Types.r>
  11.  
  12. resource 'MBAR' (128) {
  13.     {
  14.         /* [1] */    128,
  15.         /* [2] */    129,
  16.         /* [3] */    130,
  17.         /* [3] */    131
  18.     }
  19. };
  20.  
  21. resource 'MENU' (128) {
  22.     128, textMenuProc, 0x7FFFFFFD, enabled,    apple,
  23.     {
  24.         /* [1] */    "About Jim's CDEFs…", noIcon, noKey, noMark, plain,
  25.         /* [2] */    "-", noIcon, noKey, noMark, plain
  26.     }
  27. };
  28.  
  29. resource 'MENU' (129) {
  30.     129, textMenuProc, allEnabled, enabled, "File",
  31.     {
  32.         /* [1] */    "Close",     noIcon, "W",     noMark, plain,
  33.         /* [2] */    "Quit",     noIcon, "Q",     noMark, plain
  34.     }
  35. };
  36.  
  37. resource 'MENU' (130) {
  38.     130, textMenuProc, 0x7FFFFFFD, enabled, "Edit",
  39.     {
  40.         /* [1] */    "Undo",     noIcon, "Z",     noMark, plain,
  41.         /* [2] */    "-",         noIcon, noKey,     noMark, plain,
  42.         /* [3] */    "Cut",         noIcon, "X",     noMark, plain,
  43.         /* [4] */    "Copy",     noIcon, "C",     noMark, plain,
  44.         /* [5] */    "Paste",     noIcon, "V",     noMark, plain,
  45.         /* [6] */    "Clear",     noIcon, noKey,     noMark, plain
  46.     }
  47. };
  48.  
  49. resource 'MENU' (131) {
  50.     131, textMenuProc, allEnabled, enabled, "Demos",
  51.     {
  52.         /* [1] */    "Window Demo",         noIcon, "1",     noMark, plain,
  53.         /* [2] */    "Dialog Demo",         noIcon, "2",     noMark, plain,
  54.         /* [3] */    "Compare Popups",     noIcon, "3",     noMark, plain,
  55.         /* [4] */    "Demo Tab 1",         noIcon, "4",     noMark, plain,
  56.         /* [5] */    "Demo Tab 2",         noIcon, "5",     noMark, plain,
  57.         /* [6] */    "Demo Tab 3",         noIcon, "6",     noMark, plain,
  58.         /* [7] */    "Demo Tab 4",         noIcon, "7",     noMark, plain,
  59.         /* [8] */    "Dynamic popup",     noIcon, "8",     noMark, plain,
  60.         /* [9] */    "Group Boxes",         noIcon, "9",     noMark, plain,
  61.         /* [10] */    "Color Buttons",     noIcon, "0",     noMark, plain
  62.     }
  63. };
  64.  
  65. resource 'MENU' (132) {
  66.     132, textMenuProc, allEnabled, enabled, "Show",
  67.     {
  68.         /* [1] */    "3D Buttons",     noIcon, noKey,     noMark, plain,
  69.         /* [2] */    "Popup menus",     noIcon, noKey,     noMark, plain,
  70.         /* [3] */    "Arrows",         noIcon, noKey,     noMark, plain,
  71.         /* [4] */    "Date & Time",     noIcon, noKey,     noMark, plain,
  72.         /* [5] */    "Sliders",         noIcon, noKey,     noMark, plain,
  73.         /* [6] */    "Progress Bars",noIcon, noKey,     noMark, plain
  74.     }
  75. };
  76.  
  77. resource 'MENU' (133) {
  78.     133, textMenuProc, allEnabled, enabled, "Icon menu",
  79.     {
  80.         /* [1] */ "Small cicn",         44, noKey, noMark, plain,
  81.         /* [2] */ "Large cicn",            45, noKey, noMark, plain,
  82.         /* [3] */ "Very Large cicn",    46,    noKey, noMark, plain,
  83.         /* [4] */ "B&W Icon",            5,    noKey, noMark, plain,
  84.         /* [5] */ "B&W Icon (reduced)",    5,    "\0x1D", noMark, plain,
  85.         /* [6] */ "Small Icon (SICN)",    6,    "\0x1E", noMark, plain,
  86.         /* [7] */ "cicn (reduced)",    47,    "\0x1D", noMark, plain,
  87.     }
  88. };
  89. resource 'MENU' (134) {
  90.     134, textMenuProc,    allEnabled,    enabled,    "colored menu",
  91.     {
  92.         /* [1] */    "Menu items,",         noIcon, noKey, noMark, plain,
  93.         /* [2] */    "with colored",        noIcon, noKey, noMark, italic,
  94.         /* [2] */    "and styled",        noIcon, noKey, noMark, bold,
  95.         /* [2] */    "item text.",         noIcon, noKey, noMark, outline
  96.     }
  97. };
  98. resource 'mctb' (134) {
  99.     {
  100.         /* [1] */        134, 0,                    // menu colors
  101.         {
  102.             /* [1] */    0, 0, 0,
  103.             /* [2] */    0, 0, 0,
  104.             /* [3] */    0, 0, 0,
  105.             /* [4] */    61166, 61166, 61166        // bg is gray
  106.         },
  107.         /* [2] */        134, 1,                    // item 1 colors
  108.         {
  109.             /* [1] */    0, 0, 0,
  110.             /* [2] */    13107, 0, 39321,
  111.             /* [3] */    0, 0, 0,
  112.             /* [4] */    65535, 65535, 65535
  113.         },
  114.         /* [3] */        134, 2,                    // item 2 colors
  115.         {
  116.             /* [1] */    0, 0, 0,
  117.             /* [2] */    65535,0, 0,
  118.             /* [3] */    0, 0, 0,
  119.             /* [4] */    65535, 65535, 65535
  120.         },
  121.         /* [4] */        134, 3,
  122.         {
  123.             /* [1] */    0, 0, 0,
  124.             /* [2] */    0, 0, 65535,
  125.             /* [3] */    0, 0, 0,
  126.             /* [4] */    65535, 65535, 65535
  127.         },
  128.         /* [5] */        134, 4,
  129.         {
  130.             /* [1] */    0, 0, 0,
  131.             /* [2] */    65535, 0, 65535,
  132.             /* [3] */    0, 0, 0,
  133.             /* [4] */    65535, 65535, 65535
  134.         }
  135.     }
  136. };
  137. resource 'MENU' (135) {
  138.     135, textMenuProc,    allEnabled,    enabled,    "Window color",
  139.     {
  140.         /* [1] */    " ",             110, noKey, noMark, plain,
  141.         /* [2] */    " ",             111, noKey, noMark, plain,
  142.         /* [3] */    " ",             112, noKey, noMark, plain,
  143.         /* [4] */    " ",             113, noKey, noMark, plain,
  144.         /* [5] */    " ",             114, noKey, noMark, plain,
  145.         /* [6] */    " ",             115, noKey, noMark, plain
  146.     }
  147. };
  148.  
  149. resource 'ALRT' (257, "About…", purgeable) {
  150.     {40, 40, 144, 363},
  151.     257,
  152.     {    /* array: 4 elements */
  153.         /* [1] */    OK, visible, silent,
  154.         /* [2] */    OK, visible, silent,
  155.         /* [3] */    OK, visible, silent,
  156.         /* [4] */    OK, visible, silent
  157.     },
  158. #if SystemSevenOrLater
  159.     alertPositionParentWindowScreen
  160. #endif
  161. };
  162.  
  163. resource 'DITL' (257, "About…", purgeable) {
  164.     {
  165.         /* [1] */    {72, 253, 92, 311},        Button         {    enabled, "OK"    },
  166.         /* [2] */    {11, 9, 59, 312},        StaticText    {    disabled,
  167.                             "Demonstration program for Jim’s CDEFs."        }
  168.     }
  169. };
  170.  
  171. resource 'ALRT' (258, "Error", purgeable) {
  172.     {40, 40, 180, 440},
  173.     258,
  174.     {
  175.         /* [1] */    OK, visible, sound1,
  176.         /* [2] */    OK, visible, sound1,
  177.         /* [3] */    OK, visible, sound1,
  178.         /* [4] */    OK, visible, sound1
  179.     },
  180. #if SystemSevenOrLater
  181.     alertPositionParentWindowScreen
  182. #endif
  183. };
  184.  
  185. resource 'DITL' (258, "Error", purgeable) {
  186.     {
  187.         /* [1] */    {100, 322, 120, 380},    Button         {    enabled, "Quit"    },
  188.         /* [2] */    {10, 90, 80, 380},        StaticText    {    disabled, "^0"    }
  189.     }
  190. };
  191.  
  192. resource 'STR#' (128, purgeable) {
  193.     {
  194.         /* [1] */    "Sorry, but a Mac Plus or better is needed "
  195.                     "to run this program.",
  196.         /* [2] */    "At least System 6 is required to run this "
  197.                     "program.",
  198.         /* [3] */    "Whoops! Couldn’t create the menus, gotta"
  199.                     " go…"
  200.     }
  201. };
  202.  
  203. resource 'STR#' (129, purgeable) {
  204.     {
  205.         /* [1] */    "Untitled ",
  206.         /* [2] */    "Radio ",
  207.         /* [3] */    "Check ",
  208.         /* [4] */    "Tog ",
  209.         /* [5] */    "Push "
  210.     }
  211. };
  212.  
  213. resource 'wctb' (128) {
  214.     {
  215.         /* [1] */    wContentColor, 65535, 65535, 65535,
  216.         /* [2] */    wFrameColor, 0, 0, 0,
  217.         /* [3] */    wTextColor, 0, 0, 0,
  218.         /* [4] */    wHiliteColor, 0, 0, 0,
  219.         /* [5] */    wTitleBarColor, 65535, 65535, 65535
  220.     }
  221. };
  222.  
  223. resource 'WIND' (128) {
  224.     {44, 4, 215, 379}, noGrowDocProc, invisible, goAway, 0x0,
  225.     "demoCDEF Window",
  226. #if SystemSevenOrLater
  227.     centerMainScreen
  228. #endif
  229. };